package com.heiye.blog.ai.enums;

import com.heiye.blog.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: heiye
 * @CreateTime: 2024/11/18 上午17:14
 * @Description: 响应异常码
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    // ----------- 业务异常状态码 -----------
    CHAT_NOT_EXISTED("AI-40000", "此对话不存在"),
    ROLE_NOT_EXISTED("AI-40001", "角色不存在"),
    TEXT_MODEL_NOT_EXISTED("AI-40002", "文本模型不存在"),
    AI_RESPONSE_TIMEOUT("AI-40003", "服务响应超时"),
    SOUND_MODEL_NOT_EXISTED("AI-40004", "声音模型不存在"),
    AUDIO_UPLOAD_FAILED("AI-40005", "音频上传失败"),
    ;

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;

}
